package spq

import (
	"fmt"
)

type miw struct {
	Server
}

// Miw make logging middleware
func Miw(next Server) Server {
	//return func(next Server) Server {
		return miw{next}
	//}
}

func (m miw)Concat(a,b string) (string,error)  {
	fmt.Println("miw ,Concat log")
	return m.Server.Concat(a,b)
}

func (m miw)Diff(a,b string) (string,error)  {
	fmt.Println("miw, Diff log")

	return m.Server.Diff(a,b)
}